home *** CD-ROM | disk | FTP | other *** search
- Path: news.tau.ac.il!usenet
- From: Avi Lev <avil@sapiens.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: 680X0 -> PPC translator?
- Date: Tue, 12 Mar 1996 12:43:59 +0200
- Organization: Sapiens Technologies
- Message-ID: <3145556F.2839@sapiens.com>
- References: <19960307.41C900.103A8@an168.du.pipex.com> <Dny169.BJH@cix.compulink.co.uk> <19960308.41E5A8.1098C@an157.du.pipex.com>
- NNTP-Posting-Host: honda.sapiens.co.il
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Mathew Hendry wrote:
-
- > In other words, the _user_ would effectively be guiding the static translation
- > of an executable. With each run of the program, hopefully more code would be
- > translated, and the program would run progressively faster. This completely
- > removes the problem of misplaced code / data, because only code which would
- > really be executed ends up being translated (you do have the problem of how
- > to deal with programs which go haywire and jump into data segments, though -
- > almost impossible to handle whichever method you use)...
- >
- > Note: DEC's FX!64 system uses this method, and claims 70% of native
- > performance for fully translated programs.
- >
- > -- Mat.
-
- let me give you a simple reason why you're wrong and why dynamic translation is NOT the way to
- go, well you're assuming that the translated PPC code will be of the same size as the original
- code, well that is simply not necessarally true and what do you do then??? you can't change the
- segment size of the hunk in memory during run-time and even if you could that would have a
- great performance impact cuz you would have to rewrite all the code in the newly allocated
- segment each time you need more space, and as far as i know PPC instructions do require more
- space than 680x0. the best way to go is by doing static translation of all the code and there
- are algorithms to do that, they're complexity is what prevents them from being implemented
- that's all. but all in all the simplest way to go is just recompiling the program, that should
- make life alot easier. since most big applications are written in a high level language such as
- C this shouldn't present a big problem now should it?! and by the way, there's nothing better
- than the real thing, emulation will ALWAYS be slower than running native PPC code.
- Avi.
-